package com.scx.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scx.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

//    /**
//     * 根据用户名查询员工
//     * @param username
//     * @return
//     */
//    @Select("select * from employee where username = #{username}")
//    Employee getByUsername(String username);

    /**
     * 根据名称分页查询
     * @param page
     * @param name
     * @return
     */
    Page<Employee> selectByNamePage(@Param("page") Page<Employee> page,@Param("name") String name);
}
